package com.wpx.Mapper;

import com.wpx.Pojo.Paragraph;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ParagraphMapper {
    void saveParagraph(Paragraph paragraph);


    @Select("select *from paragraph where article_id=#{articleId} order by id;")
    List<Paragraph> getParagraphList(Integer articleId);
    @Update("update  paragraph set image_url=#{imageUrl} where id=#{id}")
    void updateImage(Integer id, String imageUrl);
}
